<?php
/**
 * created by zzy
 * date: 2017/10/24 9:28
 */

namespace App\Eloquent\Ygt;

class ProcessFieldCompany extends DbEloquent{

    protected $table    = 'ygt_process_field_company';

    public static function getFieldTypeByFieldName( $fieldName, $companyId ){

        $where                  = ['field_name'=>$fieldName];
        $where['company_id']   = $companyId;
        $result                 = self::getOneValue( $where, 'field_type' );
        return $result;
    }

}
